/*
 * @Author: 刘经标 2604132672@qq.com
 * @Date: 2025-04-14 10:25:00
 * @LastEditors: 刘经标 2604132672@qq.com
 * @LastEditTime: 2025-04-14 10:25:47
 * @FilePath: /ai-backend/src/utils/path.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { fileURLToPath } from 'url';
import path from 'path';

export function getDirname(url: string) {
  return path.dirname(fileURLToPath(url));
}